//
//  HJSendVoiceView.h
//  KaiChat
//
//  Created by lx on 2023/10/27.
//

#import "HJGradientView.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, TJRecordStatus) {
    TJRecord_Status_TooShort,
    TJRecord_Status_TooLong,
    TJRecord_Status_Recording,
    TJRecord_Status_Cancel,
};

@class HJRecordView;

@protocol HJRecordViewDelegate <NSObject>

@optional

- (void)didClickCancel:(HJRecordView *)recordView;
- (void)didClickSend:(HJRecordView *)recordView;
- (void)didClickMicrophone:(HJRecordView *)recordView;


@end

@interface HJRecordView : HJGradientView

@property (nonatomic, assign) TJRecordStatus status;
@property (nonatomic, assign) NSTimeInterval second;
@property (nonatomic, weak) id <HJRecordViewDelegate> delegate;
- (void)reset;

@end

NS_ASSUME_NONNULL_END
